<?php 
// session_start();
include_once"function/config.php";
include('function/fnc.php');
$mdpass = mysql_fetch_array(mysql_query("SELECT MDPass FROM admin"));
$passlock = mysql_fetch_array(mysql_query("SELECT Passlock FROM admin"));
if($passlock['Passlock'] == NULL OR $mdpass['MDPass'] != $passlock['Passlock']) {
		header("Location: error.php");
}
?>
<?php
    // if( isset($_SESSION['userName']) ){
        include("function/includes.php"); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Bericash -  Great Apps and Games.</title>
        <meta name="keywords" content="free,my,apps" />
        <meta name="description" content="FreeMyApps" />
<meta name="twitter:card" content="app">
<meta name="twitter:description" content="Free My Apps is an awesome way to discover great apps, and get rewarded! You  get to explore some great free apps and get rewards like Amazon and  iTunes gift cards, and many more great prizes!">
<meta name="twitter:app:id:googleplay" content="com.fiksu.fma.android">
<meta name="twitter:app:url:googleplay" content="https://play.google.com/store/apps/details?id=com.fiksu.fma.android&hl=en">
        <link rel="stylesheet" href="css/screen.css" type="text/css" />
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
        <script type="text/javascript" src="js/jquery.cycle.all.js"></script>       

        <script type="text/javascript" src="js/rbw2dqp.js"></script>
        <script type="text/javascript">try{Typekit.load();}catch(e){}</script>

        <script type="text/javascript" src="js/fancybox/jquery.fancybox.pack.js"></script>
        <link href="js/fancybox/jquery.fancybox.css" rel="stylesheet" type = "text/css" />

        <script type="text/javascript">
            $(document).ready(function() {
                $(".fancybox").fancybox({padding:0, margin:0});
            });
        </script>

                
        <script type="text/javascript">
        $(document).ready(function() {
            $('.slideshow').cycle({
                fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
            });
        });

        $(document).ready(function () { 
            $('#nav li').hover(
                function () {
                    //show its submenu
                    $('ul', this).stop().slideDown(100);
                }, 
                function () {
                    //hide its submenu
                    $('ul', this).stop().slideUp(100);          
                }
            );
        });
        </script>


    <script type="text/javascript">
        // Cufon.replace('h1'); // Works without a selector engine
        // Cufon.replace('h2',{hover: true}); // Works without a selector engine
        // Cufon.replace('h3',{hover: true}); // Works without a selector engine
        // Cufon.replace('h4',{hover: true}); // Works without a selector engine
    </script>
    </head>
    <body class="home">
    <div id="banners" class="slideshow">
        <div id="banner-ios-home-1"></div>
<!--         <div id="banner-ios-home-2"></div>
        <div id="banner-ios-home-3"></div>
        <div id="banner-ios-home-4"></div> -->
        <div id="banner-ios-home-5"></div>
    </div>
    <div id="main-wrapper">
        <div id="header">
            <a href="index.html" id="free-my-apps-logo"></a>
            <ul id="nav">
                <li><a class="active" href="">Home</a></li>
                <li><a href="#popup" class="fancybox">How it Works</a></li>
                <li><a href="app.php" class="fancybox">Sign Up</a></li>
            </ul>
            <ul id="social-nav">
                <li><a target="_blank" href=""><img alt="" src="images/social-facebook.png" /></a></li>
                <li><a target="_blank" href=""><img alt="" src="images/social-twitter.png" /></a></li>
                <li><a target="_blank" href=""><img alt="" src="images/social-pinterest.png" /></a></li>
                <li><a target="_blank" href=""><img alt="" src="images/social-youtube.png" /></a></li>
                 <li><a target="_blank" href=""><img alt="" src="images/social-googleplus.png" /></a></li>
                
          </ul>
        </div><!--header-->
        


        <div id="content">

            <div style="display:none">
                <div id="popup">
                    <img alt="" src="images/how-it-works-popup.jpg" usemap="#thisisamap" />
                    <map id="thisisamap" name="thisisamap">
                    <area shape="rect" coords="42,134,236,389" href="" alt="" title=""    />
                    <area shape="rect" coords="333,134,527,389" href="" alt="" title=""    />
                    <area shape="rect" coords="240,333,327,389" href="" alt="" title=""    />
                    </map>
                </div>
            </div>
<!--             <div style="display:none">
                <div id="betapop">
                    <a href="https://play.google.com/store/apps/details?id=com.fiksu.fma.android" target="_blank"><img alt="" src="images/beta-popup.jpg"  /></a>
                </div>
            </div>
 -->

            <div class="big-column-home">
                <h1>Discover Great Apps &amp; Games. Get Rewarded.</h1>
                <h2>Get amazing Gift Cards for trying out awesome Apps! </h2>
               <div class="slideshow slideshow-home">
                    <div>
                    <img alt="" src="images/set_1.png" />
                </div><div>
                <img alt="" src="images/set_2.png" />
                </div>
                <div>
                <img alt="" src="images/set_3.png" />
                </div>
                </div>
            
            </div>
            <div id="home-lower-banner">
                <div id="home-banner-column-1">
                    <h3>Get started on your iOS Device</h3>
                    <p>Simply use your safari browser on your iPhone, iPad or iPod Touch to access the FMyApps Service at: </p>
                    <!-- <a href="#" id="free-apps-button"></a> -->
                    <img alt="" style="padding-top:12px;" src="" />
                    <img alt="" id="home-phonepic" src="images/home-phonepic.png" />

                </div>
                <div id="home-banner-column-2">
                    <h3>Got an Android Device? </h3>
                    <p>Go directly to Google Play and download FMyApps for your Android device</p>
<!--                     <a href="#betapop" class="fancybox" id="google-play-button"></a> -->
                     <a href="<?php echo $domainapp ?>" target="_blank" id="google-play-button"></a>
                    <img alt="" id="home-phonepic-2" src="images/home-phonepic-2.png" />

                </div>
                <div id="home-banner-column-3">
                    <a class="fancybox" href="images/giftcard-chart.jpg"><img alt="#" src="images/rewards-button.png" /></a>
                </div>
                <br class="clear" />
            </div>
        </div><!--content-->
    </div><!--main-wrapper-->
    <div id="footer-fw">
        <div id="footer">
            <div id="footer-left"><strong>Questions:</strong> <a href="mailto:admin@coin2cash.com">support@coin2cash.com</a></div>
        </div><!--footer-->
    </div>
    <script src="js/munchkin.js" type="text/javascript"></script> <script type="text/javascript">mktoMunchkin("226-SUL-895");</script>
    </body>
    </html>
